﻿using System;
using System.Runtime.Serialization;

namespace Lhz.Pp.Entity.Database
{
    [DataContract(IsReference = true)]
    public class UserRole : DatabaseEntity
    {
        [DataMember]
        public virtual Guid UserGuid { get; set; }

        [DataMember]
        public virtual User User { get; set; }

        [DataMember]
        public virtual Guid RoleGuid { get; set; }

        [DataMember]
        public virtual Role Role { get; set; }

        [DataMember]
        public virtual Guid ApplicationGuid { get; set; }

        [DataMember]
        public virtual Application Application { get; set; }
    }
}
